package com.jch.helloworld;

public class HelloWorld {

    // 示例：私有字段
    private String name;

    public void setName(String name) {
        System.out.println("设置name值为：" + name);
        this.name = name;
    }

    public void sayHello() {
        System.out.println("say: hello " + name);
    }

    public HelloWorld() {
        System.out.println("创建对象！");
    }
}
